<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="/static/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/static/css/dashboard.css" rel="stylesheet"/>
    <title>系统后台${me.type}</title>
</head>
<body>

<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">教学质量监控系统&nbsp;<small>欢迎你，${me.name!}</small></a><span></span>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="/login"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>&nbsp;退出</a></li>
            </ul>
        </div>
    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar" id="nav">
                <#if me.type!='admin'>
                <li><a href="/test" target="main"><span class="glyphicon glyphicon-heart" aria-hidden="true"></span>&nbsp;在线测评</a></li>
                <li><a href="/info" target="main"><span class="glyphicon glyphicon-time" aria-hidden="true"></span>&nbsp;
                    <#if me.type='student'>困知勉行</#if>
                    <#if me.type='teacher'>知己知彼</#if>
                </a></li>
                </#if>
                    <#if me.type != 'admin'>
                    <li><a href="/feedback" target="main"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>&nbsp;留言板</a></li>
                    <#else>
                        <li><a href="/feedback" target="main"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>&nbsp;用户反馈</a></li>
                    </#if>
<#if me.type != 'admin'>
              <li><a href="/help" target="main"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>&nbsp;系统帮助</a></li>
                <li><a href="/liuyan" target="main"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>&nbsp;用户留言</a></li>
</#if>
                <li><a href="/password" target="main"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>&nbsp;修改密码</a></li>
            </ul>
            <ul class="nav nav-sidebar">

<#if me.type!='admin'>
    <li><a href="/news" target="main" class="text-info"><span class="glyphicon glyphicon-th" aria-hidden="true"></span>&nbsp;新闻公示</a></li>

</#if>
<#if me.type=='admin'>
                <li><a href="/standard" target="main" class="text-info"><span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>&nbsp;测评指标体系</a></li>
                <li><a href="/liuyanMgr" target="main" class="text-info"><span class="glyphicon glyphicon-th" aria-hidden="true"></span>&nbsp;留言管理</a></li>
                <li><a href="/user" target="main" class="text-info"><span class="glyphicon glyphicon-th" aria-hidden="true"></span>&nbsp;用户管理</a></li>
                <li><a href="/news" target="main" class="text-info"><span class="glyphicon glyphicon-th" aria-hidden="true"></span>&nbsp;新闻管理</a></li>
                <li><a href="/classes" target="main" class="text-info"><span class="glyphicon glyphicon-th" aria-hidden="true"></span>&nbsp;班级管理</a></li>
</#if>
            </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <iframe name="main" src="" style="width:100%;border: none;height: 550px;"></iframe>
        </div>
    </div>
</div>

<div id="footer">
    <ul class="footer_link">
        <li><a href="#">关于我们</a>|</li>
        <li><a href="#">联系我们</a>|</li>
        <li><a href="#">帮助中心</a>|</li>
        <li style="color: #868686;">All
            Rights Reserved</li>
    </ul>
</div>上

<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript">
    $(function(){
        $('.nav.nav-sidebar li').click(function(){
            $('.nav.nav-sidebar li').removeClass('active');
            $(this).addClass('active');
        });
    })
</script>
</body>
</html>